package com.csii.adhoc.dataready.service;

import com.csii.adhoc.dataready.TDataRelationDtlPo;

import java.util.List;
import java.util.Map;

/**
 * @description: 数据集接口类
 * @author: zyliu
 * @create: 2021-01-13 09:32
 */
public interface TDataRelationDtlService {

    void insertOneTDataRelationDtl(TDataRelationDtlPo tDataRelationDtl);

    void insertListTDataRelationDtl(List<TDataRelationDtlPo> tDataRelationDtls);

    int updateTDataRelationDtlByPrimaryKey(TDataRelationDtlPo tDataRelationDtl);

    int deleteTDataRelationDtlByPrimaryKey(String relationId,String masterId,String slaveId);

    int deleteByRelationId(String relationId);

    List<TDataRelationDtlPo> selectListTDataRelationDtl(String modelId);

    List<TDataRelationDtlPo> selectListTDataRelationDtlByIds(List<String> list);

    List<Map<String,String>> selectTableIdByModelId(String modelId);

    TDataRelationDtlPo selectOneTDataRelationDtl(String modeId, String fldEnname);

    void tDataRelationDtlMaintain(TDataRelationDtlPo tDataRelationDtl, String optMode);

    Map selCustDataDbTable(String sql);
}
